"""
Python对象的内置属性
"""
class Student:

    def __init__(self, name, age):
        self.name = name
        self.age = age

    def play(self):
        print(f'我叫{self.name},我喜欢玩游戏')

if __name__ == '__main__':
    s = Student('聂茹凤',19)

    print(s.__dict__)  # 把对象转换为字典
    print(s.__module__) # 获取模块名称